Skip to content

Conversation

@Arlodotexe
Copy link
Member

Attempts to fix the issue where scheduled weekly releases don't trigger CI builds.

Problem

Release events created by workflows using GITHUB_TOKEN don't trigger other workflows (GitHub Actions security policy to prevent recursive workflow triggering).

Solution

  1. Remove explicit token references - Let GitHub Actions handle authentication automatically instead of explicitly setting GH_TOKEN or GITHUB_TOKEN in env
  2. Add --notes-start-tag - Generate sparse release notes comparing only against previous weekly tag (prevents pinging everyone with full history)
  3. Add --fail-on-no-commits - Prevent empty releases when no work has been done since last release

Changes

  • Modified .github/workflows/scheduled-releases.yml
  • Removed env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} block
  • Added logic to find previous weekly tag
  • Added --notes-start-tag "$PREV_TAG" to gh release create command
  • Added --fail-on-no-commits flag

Testing

Can be tested via:

  • Manual trigger: workflow_dispatch on Actions tab
  • Automated: Wait for next Wednesday's scheduled run (Oct 23)

Related

See also

- Remove explicit token references to allow workflow triggering

- Add --notes-start-tag for sparse release notes (only changes since previous tag)

- Add --fail-on-no-commits to prevent empty releases
Copy link
Member

@michael-hawker michael-hawker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if this works... 🤞

Copy link
Member

@michael-hawker michael-hawker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thought I approved this already...

@michael-hawker michael-hawker merged commit 8e5b4b8 into main Oct 20, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants